package com.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class OrderServiceApplication {

    @Autowired
    private ApplicationContext context;

    public static void main(String[] args) throws Exception {
        SpringApplication.run(OrderServiceApplication.class, args);

    }

//    @Override
//    public void run(String... args) {
//        // 检查所有Netty相关Bean
//        Arrays.stream(context.getBeanDefinitionNames())
//                .filter(name -> name.contains("Channel") || name.contains("Handler"))
//                .forEach(System.out::println);
//    }
}